/** user 组 */
export interface SvgCaptchaInter {
  captcha: string;
  captchaId: number;
}
export interface LoginForm {
  username: string;
  password: string;
  captcha: string;
  captchaId: number;
}

export interface LoginInter {
  accessToken: string;
  userId: string | number;
}

export interface Role {
  id: number;
  code: string;
  name: string;
  enable: number;
}

interface Profile {
  id: number;
  nickName: string;
  gender: number;
  avatar: string;
  address: string;
  email: string;
  userId: number;
}

export interface UserInfo {
  id: number;
  username: string;
  enable: boolean;
  createTime: string;
  updateTime: string;
  profile: Profile;
  roles: Role[];
}

export type CreateUser = Pick<
  UserInfo & Profile,
  "username" | "nickName" | "gender" | "avatar" | "address" | "email"
> & { password: string };
